<extend name="Base/common"/>
<block name="header">
    <include file="Public/nav"/>
</block>
<block name="body">
    <div class="" style="/*background: #0080c0;padding: 20px*/">

        <div id="timeline">

            <volist name="versions.data" id="vo">
                <div class="item">
                    <div class="content">
                        <div class="clearfix margin-bottom-10 margin-top-10">

                            <div class="col-xs-3">
                                <img src="{$vo.goods.cover|getThumbImageById=90,90}"
                                     style="width: 90px;height: 90px;border-radius: 3px">
                            </div>
                            <div class="col-xs-9">
                                <h2 style="margin-bottom: 0">
                                    <a href="{:U('Index/goodsDetail',array('id'=>$vo['goods_id']))}" >《{$vo.goods.title}》 更新至 <span
                                            class="label label-success"> {$vo.title}</span></a>
                                </h2>

                                <p>
                                    {$vo.goods.ad|text|mb_substr=0,50,'utf-8'}
                                </p>

                                <p>
                                    {$vo.user.space_link} 上传于 {$vo.create_time|friendlyDate}
                                </p>
                            </div>
                        </div>
                        <div style="border-top: 1px solid #eee">
                            <h3>更新日志
                                </h3>
                                    <div>
                                        <ul style="list-style: disc">
                                            {$vo.log}
                                        </ul>
                                    </div>

                        </div>
                    </div>
                </div>
            </volist>
        </div>
        <div>{$versions.html}</div>

    </div>
    <script src="__JS__/smohanTimeLine.min.js"></script>
    <script>
        var myTimeLine = null;
        window.onload = function () {
            myTimeLine = $('#timeline').css({visibility: 'visible'}).smohanTimeLine({
                item: '.item',
                margin: 120,
                top: 20,
                minTop: 10,
                resize: true,
                minScreen: 760
            });
            //console.log(myTimeLine);
        }
    </script>
</block>